<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jerseys Product</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<load href="__PUBLIC__/Js/Base.js" />
<load href="__PUBLIC__/Js/prototype.js" />
<load href="__PUBLIC__/Js/mootools.js" />
<load href="__PUBLIC__/Js/Ajax/ThinkAjax.js" />
<link href="__PUBLIC__/css/skin.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
 <!--
	function add(){
		window.location.href="__URL__/add";
	}
	function edit(id){
		window.location.href="__URL__/edit/id/"+id;
	}
	function del(id){
		if (confirm("确定要删除商品吗？"))
		ThinkAjax.send('__URL__/delete','ajax=1&id='+id,complete,'result');
	}
	function complete(data,status){
		if (status==1)
		{
			alert("操作成功");
			window.location.href="__URL__";
		}
	}
 //-->
 </script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<!-- 页面顶部标题栏 -->
	<tr>
		<td width="935" valign="top"
			background="__PUBLIC__/images/content-bg.gif" colspan="2">
		<table width="100%" height="31" border="0" cellpadding="0"
			cellspacing="0" class="left_topbg" id="table2">
			<tr>
				<td height="31">
				<div class="titlebt">商品</div>
				</td>
			</tr>
		</table>
		</td>
		<td width="16" valign="top"
			background="__PUBLIC__/images/mail_rightbg.gif">&nbsp;</td>
	</tr>

	<tr>
		<td colspan="2">
		<form id="listForm" name="listForm" method="POST" action="__URL__/">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td height="31" colspan="8">
				<div>查询列表</div>
				</td>
			</tr>
			<tr>
				<td height="25%" align="right">产品编号</td>
				<td height="25%" align="left"><input name="product_no"
					type="text" id="product_no" size="30"
					value="{$condForm.product_no}" /></td>
				<td height="25%" align="right">产品名称</td>
				<td height="25%" align="left"><input name="product_name"
					type="text" id="product_name" size="30"
					value="{$condForm.product_name}" /></td>
			</tr>
			<tr>
				<td colspan="8" align="center"><input type="submit" value="查询"></td>
			</tr>
		</table>
		</form>
		</td>
	</tr>

	<tr>
		<td>
		<form id="listForm" name="listForm" method="POST"
			action="__URL__/insert">
		<table width="100%" border="1" cellspacing="0" cellpadding="0"
			class="nowtable">
			<tr>
				<th class="list_th">序号</th>
				<th class="list_th">产品编号</th>
				<th class="list_th">产品名称</th>
				<th class="list_th">原始价格</th>
				<th class="list_th">折扣</th>
				<th class="list_th">出售价格</th>
				<th class="list_th">描述</th>
				<th class="list_th">图片</th>
				<th class="list_th">创建时间</th>
				<th class="list_th">更新时间</th>
				<th class="list_th">操作</th>
			</tr>
			<volist name="list" id="vo">
			<tr
				<eq name="mod" value="0">
				bgcolor="#f2f2f2"
				</eq>
				<eq name="mod" value="1">
				bgcolor="#FFFFFF"
				</eq>
				>
				<td width="5%" height="30" align="center" class="left_txt2">{$i}</td>
				<td width="5%" align="center"><a href="#"
					onClick="edit({$vo.id})">{$vo.product_no}</a></td>
				<td width="5%" height="30" align="center">{$vo.product_name}</td>
				<td width="8%" height="30" align=""center" >{$vo.original_price}</td>
				<td width="5%" height="30" align="center">{$vo.discount}</td>
				<td width="8%" height="30" align="center">{$vo.current_price}</td>
				<td width="20%" height="30" align="left">{$vo.description}</td>
				<td width="10%" height="30" align=""center" >
					<img src="{$upload_dir_access_uri}{$vo.pic}" width="120px" heigth="80px" >
				</td>
				<td width="10%" height="30" align="center">{$vo.create_time}</td>
				<td width="10%" height="30" align="center">{$vo.update_time}</td>
				<td width="5%" height="30" align="center"><a href="javascript:del({$vo.id});">删除</a></td>
			</tr>
			</volist>
			<tr>
				<td width="50%" height="30" align="center" colspan="11"><input
					type="button" onclick="add();" value="新增" name="B1" /></td>
			</tr>
			<tr>
				<td align="right" colspan="10">{$page}</td>
			</tr>
		</table>
		</form>
		</td>
	</tr>
</table>
</td>
</tr>
</table>
</body>
</html>